package cn.ydt.ydt.community.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 签到信息
 *
 * @author Administrator
 */
@Data
public class SingInDTO {
    private static final String VALIDATE_MESSAGE_PREFIX = "签到失败,";
    /**
     * 签到用户id
     */
    @ApiModelProperty(value = "签到用户id", name = "userId" , example = "1" ,required = false)
    private Long userId;


    /**
     * 签到用户社区id
     */
    @ApiModelProperty(value = "社区id", name = "communityId" , example = "1")
    private Long communityId ;

    /**
     * 健康状态
     */
    @ApiModelProperty(value = "用户健康状况", name = "status" , example = "1",required = true)
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "状况不能为空" )
    private Integer status;

    /**
     *
     */
    @ApiModelProperty(value = "contact", name = "contact" , example = "1",required = false)
    private String contact;

    /**
     * 体温
     */
    @ApiModelProperty(value = "用户体温", name = "temperature" , example = "36.5",required = true)
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "体温不能为空" )
    private Double temperature;

    /**
     * 接种疫苗情况
     */
    @ApiModelProperty(value = "用户接种疫苗情况", name = "qrvaccine" , example = "2",required = true)
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "疫苗接种状况不能为空" )
    private Integer qrvaccine;

    /**
     * 签到地址
     */
    @ApiModelProperty(value = "签到位置",  name = "address" , example = "云南省昆明市盘龙区环城东路88号",required = true)
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "地址不能为空" )
    private String address;

    /**
     * 签到位置纬度
     */
    @ApiModelProperty(value = "签到位置纬度", name = "latitude" , example = "39.1584",required = true)
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "纬度不能为空" )
    private Double latitude;
    /**
     * 签到位置经度
     */
    @ApiModelProperty(value = "签到位置经度", name = "longitude" , example = "166.3254",required = true)
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "经度不能为空" )
    private Double longitude;
    /**
     * 是否在签到位置内
     */
    @ApiModelProperty(value = "是否在范围内", name = "isWithinRange" , example = "0")
    private Integer isWithinRange ;



}
